// 部门管理
import request from '@utils/request'

// 获取用户分页列表
export const postTaskList = (data) => {
  return request({ url: `/xddcloud-scheduler/scheduler/list/page`, method: 'POST', data })
}
// 新增定时任务
export const postAddTask = (data) => {
  return request({ url: `/xddcloud-scheduler/scheduler/add`, method: 'POST', data })
}
// 编辑定时任务
export const postEditTask = (data) => {
  return request({ url: `/xddcloud-scheduler/scheduler/update`, method: 'PUT', data })
}
// 删除定时任务
export const deleteTask = (data) => {
  return request({ url: `/xddcloud-scheduler/scheduler/delete/${data}`, method: 'delete'})
}
// 执行定时任务
export const postExecuteTask = (data) => {
  return request({ url: `/xddcloud-scheduler/scheduler/execute/manual`, method: 'POST', data })
}
